package com.xky.cors.controller;

import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

/**
 * @author keying.xia
 * @date 2017/11/29
 */
@RestController
@RequestMapping(value = "/api")
public class Controller {

    @PostMapping(value = "/get")
    public HashMap<String, Object> get(@RequestParam String name) {
        HashMap<String, Object> map = new HashMap<>();
        map.put("title", "hello world");
        map.put("name", name);
        return map;
    }

}
